package com.guigu.tms.customer.controller;

import com.guigu.tms.commons.aggregation.entity.GoodsType;
import com.guigu.tms.commons.aggregation.feign.GoodsTypeFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("goodsType")
public class GoodsTypeController {

    @Autowired
    private GoodsTypeFeignClient goodsTypeFeignClient;

    @GetMapping("getGoodsType")
    public List<GoodsType> getGoodsType(){
        return goodsTypeFeignClient.getGoodsType();
    }

}
